package com.tql.mytest;

import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

public class Thread1 {
    public static void main(String[] args) {
        ExecutorService executorService= Executors.newFixedThreadPool(10);
        executorService.submit(new ThreadTest());
        executorService.submit(new ThreadTest1());
        for (int i = 0; i <10 ; i++) {
            executorService.execute(new ThreadTest1());
            executorService.execute(new ThreadTest());
        }
        executorService.shutdown();
    }
}
